package com.denlaku.longan.repository;

import com.denlaku.longan.dao.AuditLogDao;
import com.denlaku.longan.vo.AuditLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author tianx
 */
@Repository
public class AuditLogRepository {
    @Autowired
    private AuditLogDao auditLogDao;

    /**
     * 添加审计日志
     *
     * @param auditLog 审计日志
     */
    public void add(AuditLog auditLog) {
        auditLogDao.add(auditLog);
    }

    /**
     * 查询审计日志
     *
     * @param auditLog 查询参数
     * @return 审计日志列表
     */
    public List<AuditLog> list(AuditLog auditLog) {
        return auditLogDao.list(auditLog);
    }
}
